<template>
  <table>
    <thead>
      <tr>
        <th>姓名</th>
        <th>年龄</th>
        <th>email</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <tr v-for="(item,index) in data" :key="item.id">
        <td>{{item.name}}</td>
        <td>{{item.age}}</td>
        <td>{{item.email}}</td>
        <td>
          <!-- <button>编辑</button> -->
          <slot :myitem="item" :idx="index"></slot>
        </td>
      </tr>
    </tbody>
  </table>
</template>

<script>
export default {
    props:{
        data: {
            type: Array,
            default: []
        }
    }
};
</script>

<style>
</style>